<div class="ciuacademicperiods view">

<?php $url=$this->Html->link('Periodo Académico',array('action' => 'index')); ?>
		<?php  $tokens=array(0=>$url, 1=>"Detalle") ?>
        <?php echo $this->element("breadcrumb", array('tokens'=>$tokens))?>

  <dl><?php $i = 0; $class = ' class="altrow"';?>
    <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
    <dd<?php if ($i++ % 2 == 0) echo $class;?>>
      <?php echo $ciuacademicperiod['Ciuacademicperiod']['id']; ?>
      &nbsp;
    </dd>
    <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Name'); ?></dt>
    <dd<?php if ($i++ % 2 == 0) echo $class;?>>
      <?php echo $ciuacademicperiod['Ciuacademicperiod']['name']; ?>
      &nbsp;
    </dd>
    <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Start Date'); ?></dt>
    <dd<?php if ($i++ % 2 == 0) echo $class;?>>
      <?php echo $ciuacademicperiod['Ciuacademicperiod']['start_date']; ?>
      &nbsp;
    </dd>
    <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('End Date'); ?></dt>
    <dd<?php if ($i++ % 2 == 0) echo $class;?>>
      <?php echo $ciuacademicperiod['Ciuacademicperiod']['end_date']; ?>
      &nbsp;
    </dd>
    <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Preregistration Start'); ?></dt>
    <dd<?php if ($i++ % 2 == 0) echo $class;?>>
      <?php echo $ciuacademicperiod['Ciuacademicperiod']['preregistration_start']; ?>
      &nbsp;
    </dd>
    <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Preregistration End'); ?></dt>
    <dd<?php if ($i++ % 2 == 0) echo $class;?>>
      <?php echo $ciuacademicperiod['Ciuacademicperiod']['preregistration_end']; ?>
      &nbsp;
    </dd>
    <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Registration Start'); ?></dt>
    <dd<?php if ($i++ % 2 == 0) echo $class;?>>
      <?php echo $ciuacademicperiod['Ciuacademicperiod']['registration_start']; ?>
      &nbsp;
    </dd>
    <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Registration End'); ?></dt>
    <dd<?php if ($i++ % 2 == 0) echo $class;?>>
      <?php echo $ciuacademicperiod['Ciuacademicperiod']['registration_end']; ?>
      &nbsp;
    </dd>
    <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Classes Start'); ?></dt>
    <dd<?php if ($i++ % 2 == 0) echo $class;?>>
      <?php echo $ciuacademicperiod['Ciuacademicperiod']['classes_start']; ?>
      &nbsp;
    </dd>
    <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Classes End'); ?></dt>
    <dd<?php if ($i++ % 2 == 0) echo $class;?>>
      <?php echo $ciuacademicperiod['Ciuacademicperiod']['classes_end']; ?>
      &nbsp;
    </dd>
    <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Score Registration Start'); ?></dt>
    <dd<?php if ($i++ % 2 == 0) echo $class;?>>
      <?php echo $ciuacademicperiod['Ciuacademicperiod']['score_registration_start']; ?>
      &nbsp;
    </dd>
    <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Score Registration End'); ?></dt>
    <dd<?php if ($i++ % 2 == 0) echo $class;?>>
      <?php echo $ciuacademicperiod['Ciuacademicperiod']['score_registration_end']; ?>
      &nbsp;
    </dd>
    <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Score Publication'); ?></dt>
    <dd<?php if ($i++ % 2 == 0) echo $class;?>>
      <?php echo $ciuacademicperiod['Ciuacademicperiod']['score_publication']; ?>
      &nbsp;
    </dd>
    <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Periodo actual?'); ?></dt>
    <dd<?php if ($i++ % 2 == 0) echo $class;?>>
      <?php   if($ciuacademicperiod['Ciuacademicperiod']['isactive']){
                echo "Si";
              }else{
                echo "No";
             }
      ?>&nbsp;
    </dd>
  </dl>
</div>
<div class="related">
  <h3><?php __('Cursos del periodo académico');?></h3>
  <?php if (!empty($ciuacademicperiod['Ciucourse'])):?>
  <table class="zebra" cellpadding = "0" cellspacing = "0">
  <thead>
  <tr>
    <th><?php __('Id'); ?></th>
    <th><?php __('Asignatura'); ?></th>
    <th><?php __('Horario'); ?></th>
    <th><?php __('Salon'); ?></th>
    <th><?php __('Docente'); ?></th>
    <th><?php __('Estado'); ?></th>
    <th><?php __('Periodo'); ?></th>
  </tr>
  </thead>
  <?php
    $i = 0;
    foreach ($ciuacademicperiod['Ciucourse'] as $ciucourse):
      $class = null;
      if ($i++ % 2 == 0) {
        $class = ' class="altrow"';
      }
    ?>
    <tr<?php echo $class;?>>
      <td><?php echo $ciucourse['id'];?></td>
      <td><?php echo $ciucourse['ciusubject_id'];?></td>
      <td><?php echo $ciucourse['ciutimetable_id'];?></td>
      <td><?php echo $ciucourse['ciuroom_id'];?></td>
      <td><?php echo $ciucourse['ciuuser_id'];?></td>
      <td><?php echo $ciucourse['ciucoursestate_id'];?></td>
      <td><?php echo $ciucourse['ciuacademicperiod_id'];?></td>
    </tr>
  <?php endforeach; ?>
  </table>
<?php endif; ?>
</div>
